package io.renren.modules.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.modules.dao.BsOrderConsumerDao;
import io.renren.modules.dto.BsOrderConsumerDTO;
import io.renren.modules.entity.BsOrderConsumerEntity;
import io.renren.modules.service.BsOrderConsumerService;
import cn.hutool.core.util.StrUtil;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2024-05-27
 */
@Service
public class BsOrderConsumerServiceImpl extends CrudServiceImpl<BsOrderConsumerDao, BsOrderConsumerEntity, BsOrderConsumerDTO> implements BsOrderConsumerService {

    @Override
    public QueryWrapper<BsOrderConsumerEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<BsOrderConsumerEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StrUtil.isNotBlank(id), "id", id);

        return wrapper;
    }


}